@import "~@/assets/scss/mixin.scss";

.container {
  position: relative;
  min-height: 100vh;
  background: url("~@/assets/images/user/level/main_bg.jpg") no-repeat center top #f7f7f7;
  background-size: 100% 592px;

  @include clear;
}

.header {
  padding: 0 30px;
  margin-top: 106px;
  display: flex;
  align-items: center;
  height: 50px;
  color: #fff;
  text-align: center;
}

.icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 40px;
}

.headTitle {
  flex: 1;
  width: 0;
  font-size: 36px;
  font-weight: bold;
}

.levelList {
  position: relative;
  margin-left: 50px;
  margin-right: 50px;
  display: flex;
  justify-content: space-between;
}

.levelLine {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 6px;
  background: #8891ad;
  border-radius: 4px;
}

.levelItem {
  margin-top: 54px;
  flex-shrink: 0;

  &.isActive {
    margin-top: 28px;

    .levelText {
      height: 50px;
      line-height: 50px;
      color: #fff;
      font-size: 36px;
      font-weight: 600;
    }

    .levelDot {
      margin-top: 18px;
      background: #fff;

      &::before,&::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        background: #fff;
        transform: translate(-50%, -50%);
      }

      &::before {
        width: 48px;
        height: 48px;
        border-radius: 24px;
        opacity: 0.2;
      }

      &::after {
        width: 36px;
        height: 36px;
        border-radius: 18px;
        opacity: 0.5;
      }
    }
  }
}

.levelText {
  height: 34px;
  line-height: 34px;
  font-weight: 400;
  color: #8891ad;
  font-size: 24px;
  text-align: center;
}

.levelDot {
  position: relative;
  margin: 8px auto auto;
  width: 20px;
  height: 20px;
  background: #8891ad;
  border-radius: 10px;
}

.curLevel {
  margin-top: 26px;
  line-height: 34px;
  color: #8891ad;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

.wrapper {
  margin-top: 44px;
  margin-bottom: 68px;
  padding: 0 40px;
  width: 100%;
  min-height: 300px;
  background: #f7f7f7;
  border-radius: 20px 20px 0 0;
  box-sizing: border-box;

  @include clear;
}

.textTitle {
  margin-top: 40px;
  line-height: 44px;
  color: #333;
  font-size: 32px;
  font-weight: bold;
}

.textContent {
  margin-top: 20px;
  line-height: 40px;
  color: #333;
  font-size: 28px;
  font-weight: 400;
}

.levelTable {
  margin-top: 30px;
  background: #fff;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
  border-radius: 16px;

  @include clear;
}

.tableRow {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 70px;
  height: 50px;
  box-sizing: border-box;

  &.isHeader {
    height: 80px;
    background: linear-gradient(147deg, #3b4483 0%, #161a2f 100%);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
    border-radius: 16px 16px 8px 8px;

    .tableCell {
      color: #fff;
    }
  }
}

.tableCell {
  position: relative;
  color: #333330;
  font-size: 28px;
  font-weight: 500;
  text-align: center;

  &.isLevel {
    flex: 1;
    width: 0;
  }

  &.isExp {
    width: 112px;
  }
}

.levelImage {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.cellLevelText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.tipsText {
  margin: 60px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: #333;
  font-size: 32px;
  font-weight: 600;

  &::before,&::after {
    content: '';
    display: block;
    flex: 1;
    width: 0;
    height: 4px;
    background: linear-gradient(270deg, #161a2f 0%, rgba(0, 0, 0, 0) 100%);
  }

  &::before {
    margin-right: 20px;
  }

  &::after {
    margin-left: 20px;
    transform: rotate(-180deg);
  }
}
